from django.contrib import admin

# Register your models here.
from .models import *
class UserAdmin(admin.ModelAdmin):
    list_display = ('name','passwd','email','phone','isadmin')

class ArticleAdmin(admin.ModelAdmin):
    list_display = ('title','abstract','content','author_name','type')
class ArticleTypeAdmin(admin.ModelAdmin):
    list_display = ('id','articletype')
admin.site.register(UserMsg,UserAdmin)
admin.site.register(Article,ArticleAdmin)
admin.site.register(ArticleType,ArticleTypeAdmin)